#!/bin/bash

cd /home/smartgis/workspace/project/smart_server || exit

pkill -f "core/server/deamon/deamon_server.py"
pkill -f "projects/GangHang/api.py"

nohup /home/smartgis/anaconda3/envs/mmdeploy/bin/python core/server/deamon/deamon_server.py --config projects/GangHang/configs/deamon_cfg.yaml >/dev/null 2>&1 &

while true
do
    echo hello world
    sleep 1
done